package com.codi.bus.core.dao.impl;

import com.codi.base.dao.v2.GeneratedBaseDaoImpl;
import com.codi.bus.core.dao.OneWalletDao;
import com.codi.bus.core.dao.PortfolioAssetsDao;
import com.codi.bus.core.domain.OneWallet;
import com.codi.bus.core.domain.PortfolioAssets;
import org.springframework.stereotype.Repository;

/**
 * Created by asus on 2017/12/6.
 */
@Repository("portfolioAssetsDao")
public class PortfolioAssetsDaoImpl extends GeneratedBaseDaoImpl<PortfolioAssets> implements PortfolioAssetsDao {
    @Override
    public Long insertByCode( PortfolioAssets portfolioAssets) {
        super.insert(this.generateStatement("insert"), portfolioAssets);
        return portfolioAssets.getPaPortfolioAssetsId();
    }

}
